package com.vastcom.model;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * Resource entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="resources"
    ,catalog="student"
)

public class Resource  implements java.io.Serializable {


    // Fields    

     private String id;
     private String name;
     private String path;
     private String pid;
     private Integer sort;
     private String type;


    // Constructors

    /** default constructor */
    public Resource() {
    }

    
    /** full constructor */
    public Resource(String name, String path, String pid, Integer sort, String type) {
        this.name = name;
        this.path = path;
        this.pid = pid;
        this.sort = sort;
        this.type = type;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="uuid.hex")@Id @GeneratedValue(generator="generator")
    
    @Column(name="id", unique=true, nullable=false, length=32)

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="name", length=100)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="path")

    public String getPath() {
        return this.path;
    }
    
    public void setPath(String path) {
        this.path = path;
    }
    
    @Column(name="pid", length=32)

    public String getPid() {
        return this.pid;
    }
    
    public void setPid(String pid) {
        this.pid = pid;
    }
    
    @Column(name="sort")

    public Integer getSort() {
        return this.sort;
    }
    
    public void setSort(Integer sort) {
        this.sort = sort;
    }
    
    @Column(name="type", length=10)

    public String getType() {
        return this.type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
   








}